package pt.iscte.pcd.santaclaus;

public class Cama {

	public synchronized void dorme() throws InterruptedException {
		System.out.println("Pai Natal dorme");
		wait();		
	}

	public synchronized void acorda() {
		System.out.println("Pai Natal acorda");
		notify();
	}

}
